package com.syedu.day08.homework;

/**
 * @Description 业务类
 * @createTime 2022/3/18 13:37
 * @author Administrator
 */
public class ShapeService {
    /**
     * 计算图形的周长
     */
    public double length(Shape shape){
        return shape.calcLength();
    }

    /**
     * 计算图像的面积
     */
    public double area(Shape shape){
        return shape.calcArea();
    }
}
